#include<func.h>
#include"mytools/taskQueue/taskQueue.h"
#include"mytools/mysql/m_Mysql.h"
#include"mytools/getValInJSON/getValInJSON.h"
#ifndef _threadPool_
#define _threadPool_
typedef struct threadPool_s{
    pthread_t *tidArr; // 所有子线程的tid构成的数组
    int threadNum; // 子线程的数量
    taskQueue_t taskQueue; // 任务队列
    MYSQL *mysql;
    int isexit;
} threadPool_t;

int threadPoolInit(threadPool_t *threadPool, char *confFile);
int makeWorker(threadPool_t * pthreadPool);
void *threadFunc(void *pargs);

#endif